/**
 * 右侧导航
 */
define(function (require) {
    'use strict';
    var $ = require('jquery');

    var NavManager = require('/static_public/public_menu/navManager');

    return {
        init: function () {
            new NavManager($('#nav'), [
                {
                    'id': 'menu_home',
                    'code': '',
                    'name': '首页',
                    'level': 1,
                    'iconCls': 'icon-home',
                    'url': ['/page/home/home.shtml', '/page/home/'],
                    'children': null
                },
                {
                    'id': 'menu_ditch_manage',
                    'code': '',
                    'name': '渠道管理',
                    'level': 1,
                    'iconCls': 'icon-ditchManage',
                    'url': '',
                    'children': [
                        {
                            'id': 'menu_ditch_manage_5',
                            'code': '500701',
                            'name': '规则管理',
                            'level': 2,
                            'target': '_blank',
                            'url': ['/api/index.php?r=site/redirect-to&page=clueInit']
                        },
                        {
                            'id': 'menu_ditch_manage_6',
                            'code': '500702',
                            'name': '判客分配',
                            'level': 2,
                            'target': '_blank',
                            'url': ['/api/index.php?r=site/redirect-to&page=clueAdmin']
                        }
                    ]
                },
                {
                    'id': 'menu_bee',
                    'code': '500804',
                    'name': '小蜜蜂',
                    'level': 1,
                    'iconCls': 'icon-home',
                    'url': ['/page/intermediary_organ/bee/index.shtml'],
                    'children': null
                }
            ]);
        }
    };
});
